package com.hp.modules.sys.dto;

import com.hp.common.annotation.FlagValidator;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * @version 1.0
 * @ClassName SysDictKeyParam
 * @Description TODO
 * @Auth lenovo
 * @Date 2021/7/22 11:15
 **/
public class SysDictKeyParam {
    @ApiModelProperty(value = "字典唯一编码(表名_字段名)",required = true)
    @NotBlank(message = "字典唯一编码不能为空")
    private String dictKey;
    @ApiModelProperty(value = "类型不能为空",required = true)
    @FlagValidator(values = "enum,db,custom",message = "类型只能是enum、db、custom",required = true)
    private String type;

    public String getDictKey() {
        return dictKey;
    }

    public void setDictKey(String dictKey) {
        this.dictKey = dictKey;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
